package com.open.center.jpa.model.entity;

import java.io.Serializable;

import jakarta.persistence.Column;
import jakarta.persistence.EntityListeners;
import jakarta.persistence.Id;
import jakarta.persistence.MappedSuperclass;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

/**
 * 自定义Id实体基类
 *
 * @author Riche's
 * @since 2025/8/28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@MappedSuperclass
@EntityListeners(AuditingEntityListener.class)
public abstract class IdSpecify extends AuditField implements Serializable {

    @Id
    @Column(name = "id")
    private String id;

}
